/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src.services.saving;

/**
 *
 * @author jay
 */

import java.util.List;
import java.util.Map;
import src.domain.saving.Savpurpose;
import src.services.CRUEDService;

public class SavpurposeModel implements java.io.Serializable {
    
    private CRUEDService service;
    
    public SavpurposeModel() {
        service = new CRUEDService();
    }
    
    public List<Savpurpose> findAll(Map<String, String> filters) {
        return (List<Savpurpose>) service.findAll("Savpurpose", filters);
    }

    public boolean saveData(Savpurpose data) {
        return service.saveData(data);
    }
    
    public boolean deleteData(Savpurpose data) {
        return service.deleteData(data);
    }
}
